﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Left.aspx.cs" Inherits="TeacherEval_Student_CauseTeacherEval_Left" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
    <link type="text/css" rel="stylesheet" href="../../Common/css/main.css" />
    <script type="text/javascript" language="javascript">
//    var schoolYear =0;
//    var term=0;
//     var month = 0;
    var evalId = 0;//评估项id
    var currTeacherId = 0;
    var currIndex = 0;
    var currentselect="";
    var currentS;
    function Nav(id,index)
    {
         currTeacherId = id;
         currIndex = index;
        if(currentselect != ""+index+"_"+id)
        {
            if(currentS!=null)
            {
                currentS.style.backgroundColor = "#ffffff";
            }
            currentS = document.getElementById( ""+index+"_"+id);
            currentS.style.backgroundColor = "#fffccf";
            
            var historyId = currentS.historyId; 
            var teacherName = currentS.teacherName;
            var schoolYear = "<%=SchoolCommon.Sch_SchoolInfo.SchoolYear %>";
            parent.frames["mainFrame"].location.href="LuoFangeEvalTeacher.aspx?HistoryId="+historyId+"&TeacherId="+id+"&TeacherName="+teacherName+"&Type=Edit&Year="+schoolYear+"&Month=0";
            
        }
    }
    
    
    function Reload()
    { 
        if(document.getElementById('dl') != null)
        {
            var dl = document.getElementById('dl');

            PageMethods.ReloadMenu(evalId,function(succ){
         
                dl.innerHTML =" <h2> 我 的 老 师</h2>"+succ;
         //  Nav(currTeacherId,currIndex);
           
                if(currentselect != ""+currIndex+"_"+currTeacherId)
                {
                    if(currentS!=null)
                    {
                        currentS.style.backgroundColor = "#ffffff";
                    }
                    currentS = document.getElementById( ""+currIndex+"_"+currTeacherId);
                    currentS.style.backgroundColor = "#fffccf";
                }
            },function(err){
                      showMassgeBox("提示",err._message,1,null);
            }); 
       } 
    }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server" EnablePageMethods="true">
        </asp:ScriptManager>
        
    <div class="leftWarp">
	    <div class="menuBody">
	     <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                <ContentTemplate>
	                <div class="menuList" > 
                        <dl id="dl">
                            <h2>
                                我 的 老 师</h2>
                            <%=GetMenu() %>
                        </dl>
                    </div>
                </ContentTemplate>
             </asp:UpdatePanel>
                <div style=" display:none">
                    <input type="button" id="btnReload" onclick="Reload();" />
            
                </div>
            </div>
        </div>
    </form>
</body>
</html>
<script type='text/javascript' language='javascript'> 
<%= first %> 
 evalId = <%=evalId %>
</script>